package Bk.basic;

public class J03_AmbiguousIF {

	public static void main(String[] args) {
		// 애매 모호한 IF문
/*		int x =3;
		int y =2;
		int z;
		
		if (x>2) 
			if (y>2)
				z=x+y; 
			System.out.println("z is" + z);
		else 
			System.out.println("x is " + x);*/
		
		int x = 1;
		int y = 2;
		int z = 3;
		
		if (x>2) 
			if (y>2)
				z=x+y; 
		else 
			System.out.println("x is " + x);
			System.out.println("z is " + z);
		
		
		
		
		
		
		
		
		
		
		
		
		
		// 23
		// 가.
/*		int x =3;
		int y =2;
		int z;
		if (x>2){
		if (y>2){z=x+y; System.out.println("z is" + z);}
		}
		else System.out.println("x is " + x);*/
		
		
	}

}
